package com.ruoyi.system.service.customer.impl;

import java.util.List;

import com.ruoyi.system.domain.customer.LocalReply;
import com.ruoyi.system.domain.zhuangxiumain.vo.ReplyVo;
import com.ruoyi.system.mapper.customer.LocalReplyMapper;
import com.ruoyi.system.service.customer.LocalReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 本地用户评论回复Service业务层处理
 * 
 * @author 张少丛
 * @date 2020-11-24
 */
@Service
public class LocalReplyServiceImpl implements LocalReplyService
{
    @Autowired
    private LocalReplyMapper localReplyMapper;

    /**
     * 查询本地用户评论回复
     * 
     * @param localReplyId 本地用户评论回复ID
     * @return 本地用户评论回复
     */
    @Override
    public LocalReply selectLocalReplyById(Long localReplyId)
    {
        return localReplyMapper.selectLocalReplyById(localReplyId);
    }

    /**
     * 查询本地用户评论回复列表
     * 
     * @param localReply 本地用户评论回复
     * @return 本地用户评论回复
     */
    @Override
    public List<LocalReply> selectLocalReplyList(LocalReply localReply)
    {
        return localReplyMapper.selectLocalReplyList(localReply);
    }

    /**
     * 新增本地用户评论回复
     * 
     * @param localReply 本地用户评论回复
     * @return 结果
     */
    @Override
    public int insertLocalReply(LocalReply localReply)
    {
        return localReplyMapper.insertLocalReply(localReply);
    }

    /**
     * 修改本地用户评论回复
     * 
     * @param localReply 本地用户评论回复
     * @return 结果
     */
    @Override
    public int updateLocalReply(LocalReply localReply)
    {
        return localReplyMapper.updateLocalReply(localReply);
    }

    /**
     * 批量删除本地用户评论回复
     * 
     * @param localReplyIds 需要删除的本地用户评论回复ID
     * @return 结果
     */
    @Override
    public int deleteLocalReplyByIds(Long[] localReplyIds)
    {
        return localReplyMapper.deleteLocalReplyByIds(localReplyIds);
    }

    /**
     * 删除本地用户评论回复信息
     * 
     * @param localReplyId 本地用户评论回复ID
     * @return 结果
     */
    @Override
    public int deleteLocalReplyById(Long localReplyId)
    {
        return localReplyMapper.deleteLocalReplyById(localReplyId);
    }


}
